#pragma once

#include "fractal.h"

class Shader;

namespace fractals {
	class ShaderFractal : public Fractal {
	public:
		ShaderFractal(const char *filename);

		virtual void draw(bool &didClear);
		virtual void resize(unsigned int w, unsigned int h);

		const float minX, maxX, minY, maxY;
	protected:
		Shader &shader() { return s; }
		float pitch() const { return p; }
	private:
		Shader s;
		float p;
	};
}